package com.foundersoftware.commons.organization.dao.impl.hibernate;

import com.foundersoftware.commons.organization.dao.IOrganizationDAO;
import com.foundersoftware.commons.organization.dao.impl.hibernate.OrganizationStoreHibernateImpl;
import com.foundersoftware.commons.organization.model.RoleType;

import junit.framework.TestCase;

public class TestOrganizationStoreHibernateImpl extends TestCase {
private IOrganizationDAO store = null;
	protected void setUp() throws Exception {
		super.setUp();
		store = new OrganizationStoreHibernateImpl();
		
	}

	protected void tearDown() throws Exception {
		super.tearDown();
		store = null;
	}
/*
	public void testStoreRoleType() {
		RoleType roleType = new RoleType();
		roleType.setId("1003");
		roleType.setName("Project Lead");
		roleType.setDisplayName("Project Lead");
		
		store.storeRoleType(roleType, true);
	
	}
	*/
	
  public void testGetAllRoleTypes() {
	  int len =store.getAllRoleTypes().length  ;
	  
	  assertTrue("Three", len == 3);
  }

}
